# Makefile to compile FFmpeg example application

# Compiler
CXX = g++

# FFmpeg libraries
FFMPEG_LIBS = -lavformat -lavcodec -lavutil -lswscale

# Include path for FFmpeg headers
INCLUDE_PATH = /usr/include

# Source files
SRC_FILES = video_cap_test.cpp src/video_cap.cpp src/time_cvt.cpp

# Output executable
OUTPUT = video_cap_test

# Compilation flags
CXXFLAGS = -I$(INCLUDE_PATH) -Isrc -I/usr/local/include/opencv4 -DDEBUG  $(FFMPEG_LIBS)

all: $(OUTPUT)

$(OUTPUT): $(SRC_FILES)
	$(CXX) -g -o $(OUTPUT) $(SRC_FILES) $(CXXFLAGS)

clean:
	rm -f $(OUTPUT)

.PHONY: all clean
